<template>
  <j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners"/>
</template>

<script>
  import JSelectBizComponent from './JSelectBizComponent'

  export default {
    name: 'JSelectProject',
    components: { JSelectBizComponent },
    props: ['value'],
    data() {
      return {
        settings: {
          name: '项目',
          displayKey: 'projectName',
          returnKeys: ['projectId','id'],
          listUrl: '/corp/project/list',
          queryParamCode: 'projectName',
          queryParamText: '项目名称',
          columns: [
            { title: '项目名称', dataIndex: 'projectName', align: 'center', width: '60%' },
            { title: '创建人(用户名)', dataIndex: 'createBy', align: 'center', width: '20%', widthRight: '70%' },
            { title: '创建时间', dataIndex: 'createTime', align: 'center', width: '20%' },
          ]
        }
      }
    },
    computed: {
      configs() {
        return Object.assign({ value: this.value }, this.settings, this.$attrs)
      }
    }
  }
</script>

<style lang="less" scoped></style>